/**
 * Created by wangshaohua on 2018/1/27.
 */
Number.prototype.toDate = function () {
    if (this) {
        return new Date(this).Format('yyyy/MM/dd');
    } else {
        return null;
    }
}

Number.prototype.toDateTime = function () {
    if (this) {
        return new Date(this).Format('yyyy/MM/dd hh:mm:ss');
    } else {
        return null;
    }
}